package com.language.points.proxy;

import java.lang.reflect.Method;
/**
 * 代理示例 - JDK动态代理实现类
 * @author yll
 * @version 1.0.0
 * @date 2024/04/25 10：40
 * */
public class JdkProxyHandlerImpl extends JdkProxyHandler {
    public JdkProxyHandlerImpl(Object tarObj) {
        super(tarObj);
    }
    public void invokeAfter(Object tarObj, Object proxy, Method method, Object[] args){
        System.out.println("JdkProxyHandlerImpl->invokeAfter()");
    }
    public void invokeBefer(Object tarObj, Object proxy, Method method, Object[] args){
        System.out.println("JdkProxyHandlerImpl->invokeBefer()");
    }
}
